package com.wuze.cloud.dao;

import com.wuze.cloud.pojo.SysShareDO;
import com.wuze.cloud.request.SysShareQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author wuze
 * @Date 2023/5/8 10:17
 * @ClassName: SysShareController
 * @Description: TODO
 */
@Repository
public interface SysShareDao {


    public Integer count(@Param("query") SysShareQuery query);

    public List<SysShareDO> findByPage(@Param("query") SysShareQuery query);

    public SysShareDO findById(@Param("id") Long id , @Param("userId") Long userId);

    public SysShareDO findByShareId(@Param("id") Long id , @Param("password") String password);

    public void add(@Param("share") SysShareDO share);

    public void updateById(@Param("share") SysShareDO share);

    public void deleteByIds(@Param("ids") List<Long> ids);
    public void deleteByUserIds(@Param("userIds") List<Long> userIds);

}
